package com.mic.yzzn.plc.core.plcevents;

import com.mic.yzzn.plc.common.control.datastructure.PLCCollectorQueueStatus;

import java.util.EventObject;

public class PLCEvent extends EventObject
{
	/** 采集器的状态 */
	private PLCCollectorQueueStatus status;
	
	/** 序列化ID */
	private static final long serialVersionUID = 4259424645567324205L;
	
	public PLCEvent(Object source)
	{
		super(source);
	}

	public PLCEvent(Object source, PLCCollectorQueueStatus status)
	{
		super(source);
		this.status = status;
	}
	
	// Getter
	public PLCCollectorQueueStatus getStatus()
	{
		return status;
	}
	
	//Setter
	public void setStatus(PLCCollectorQueueStatus status)
	{
		this.status = status;
	}
}
